package com.example.job07.config;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 映射properties配置文件项
 */
@Component
@ConfigurationProperties(prefix = "spring.datasource")
@Getter
@Setter
@ToString
public class DataSourcePropertiesConfig {

    private List<Config> ds;

    @Getter
    @Setter
    @ToString
    public static class Config{

        private String serverId;

        private String driverClassName ;

        private String url ;

        private String userName;

        private String password;

        private Integer initialSize ;

        private Integer maxActive ;

        private Integer minIdle ;
    }



}
